package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.UserQuery;
import com.itheima.mp.domain.vo.UserVO;
import com.itheima.mp.entity.Address;

import java.util.List;

public interface IUserService extends IService<User> {
    void updateuserMoneyById(long id, Integer money);

    List<User> queryUsers(String name, Integer status, Integer minBalance, Integer maxBalance);


    /**
     * 根据用户id，获取所有收货地址
     * @param userId
     * @return
     */
    UserVO getUserAndAddressById(Long userId);

    //根据id批量查询用户和用户的所有收货地址接口
    List<UserVO> queryBatchUsersAndAdressByIds(List<Long> ids);

    //通过用户id获取用户地址
    UserVO getAddressById(Long id);

    PageDTO<UserVO> PageQuerysers(UserQuery userQuery);
}
